//package cn.itsource.ymcc.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer;
//
////资源服务配置
//@Configuration
//public class ResourceServerConfig extends BaseResourceServerConfig {
//
//    @Override
//    public void configure(ResourceServerSecurityConfigurer resources) throws Exception {
//        //资源ID
//        resources.resourceId("uaaId");
//        super.configure(resources);
//    }
//
//
//    //2.资源服务的资源的授权配置，比如那些资源放行，那些资源需要什么权限等等
//    @Override
//    public void configure(HttpSecurity http) throws Exception {
//        http.authorizeRequests()
//                .antMatchers(
//                        "/login/common","/login/refresh","/oauth/token").permitAll();
//        super.configure(http);
//    }
//
//}